<?php
class Collection extends AppModel
{
	public $name = "Collection";
    public $validate = array(
            'id'        => 'numeric', 
            'title'     => array(
                            'rule' => array('maxLength', 512)
                            ),
            'ids'       => array( //TODO: ids validation should check entries existanse
                            'rule' => array('between', 1, 10000)
                            )
            );
};
?>